package org.apache.jsp.weixin.leader.worker;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class jz_005fscheduling_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
    _jspx_dependants.add("/WEB-INF/tld/fn.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
    _jspx_dependants.add("/WEB-INF/tld/xw.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	response.setHeader("progma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);

      out.write("\n");
      out.write("<!DOCTYPE html>\n");
      out.write("<head>\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/head.jsp", out, false);
      out.write("\n");
      out.write("\n");
      out.write("  <link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${weixin}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/css/newcalendar.css\" type=\"text/css\" rel=\"stylesheet\">\n");
      out.write("  <link href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${weixin}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/css/leader-calendar.css\" type=\"text/css\" rel=\"stylesheet\">\n");
      out.write("</head>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/navihead.jsp" + (("/weixin/include/navihead.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("title", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("排班登记", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("backUrl", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("jz_calendar?date=" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false), request.getCharacterEncoding()), out, false);
      out.write("\n");
      out.write("<body>\n");
      out.write("<header id=\"header\" class=\"header\" style=\"margin-top: 40px\">\n");
      out.write("  <p class=\"header-date js-header-date tc f16 fb\"></p>\n");
      out.write("  <p class=\"js-header-btn header-btn header-left\"><span></span></p>\n");
      out.write("  <p class=\"js-header-btn header-btn header-right\"><span></span></p>\n");
      out.write("</header>\n");
      out.write("<table class=\"dateplug\">\n");
      out.write("  <tbody>\n");
      out.write("  <tr>\n");
      out.write("    <td ></td>\n");
      out.write("    <td ></td>\n");
      out.write("    <td> 1</td>\n");
      out.write("    <td> 2</td>\n");
      out.write("    <td> 3</td>\n");
      out.write("    <td> 4</td>\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td> 5</td>\n");
      out.write("    <td> 6</td>\n");
      out.write("    <td> 7</td>\n");
      out.write("    <td> 8</td>\n");
      out.write("    <td> 9</td>\n");
      out.write("    <td>10</td>\n");
      out.write("\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td>11</td>\n");
      out.write("    <td> 12\n");
      out.write("    </td>\n");
      out.write("    <td>13</td>\n");
      out.write("    <td>14</td>\n");
      out.write("    <td>15</td>\n");
      out.write("    <td>16</td>\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td>17</td>\n");
      out.write("    <td>18</td>\n");
      out.write("    <td>19</td>\n");
      out.write("    <td> 20\n");
      out.write("    </td>\n");
      out.write("    <td>21</td>\n");
      out.write("    <td>22</td>\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td>23</td>\n");
      out.write("    <td>24</td>\n");
      out.write("    <td>25</td>\n");
      out.write("    <td>26</td>\n");
      out.write("    <td>27</td>\n");
      out.write("    <td>28</td>\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td>29</td>\n");
      out.write("    <td>30</td>\n");
      out.write("    <td>31</td>\n");
      out.write("  </tr>\n");
      out.write("  </tbody>\n");
      out.write("</table>\n");
      out.write("<!--服务人员选择-->\n");
      out.write("<div class=\"pd10 bt bb\">\n");
      out.write("  <ul class=\"peochoose\">\n");
      out.write("    ");
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context))
        return;
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("  </ul>\n");
      out.write("</div>\n");
      out.write("\n");
      out.write('\n');
      out.write(' ');
      out.write(' ');
      out.write("\n");
      out.write("    ");
      out.write("\n");
      out.write("    ");
      out.write("\n");
      out.write("    ");
      out.write('\n');
      out.write(' ');
      out.write(' ');
      out.write('\n');
      out.write("\n");
      out.write("<p class=\" tl w90 lh20\" style=\"color: red;margin: 0 auto;\">\n");
      out.write("  *批量排班只用于安排人员白天上工，不安排休息等其他状态\n");
      out.write("</p>\n");
      out.write("<p class=\" tl w90 lh20\" style=\"color: red;margin: 0 auto;\">\n");
      out.write("  *不支持跨月排班;\n");
      out.write("</p>\n");
      out.write("<ul class=\"paibtn\">\n");
      out.write("  <li>\n");
      out.write("    <p  class=\"btn btn-yellow mc  fb paiban\">排班</p>\n");
      out.write("  </li>\n");
      out.write("  <li>\n");
      out.write("    <p  class=\"btn btn-yellow mc  fb clearselect\">清除</p>\n");
      out.write("  </li>\n");
      out.write("</ul>\n");
      out.write("<input type=\"hidden\" name=\"userid\" id=\"userid\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.id>0 ? user.id : 0 }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\n");
      out.write("<input type=\"hidden\" name=\"groupid\" id=\"groupid\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${group.id>0 ? group.id : 0 }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\n");
      out.write("<input type=\"hidden\" name=\"leavetime\" id=\"leavetime\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" />\n");
      out.write("<input name=\"nowday\" id=\"nowday\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param.date }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" type=\"hidden\">\n");
      out.write("<input name=\"nowmonthresult\" id=\"nowmonthresult\"  type=\"hidden\">\n");
      out.write("<input name=\"nowdayresult\" id=\"nowdayresult\"  type=\"hidden\">\n");
      out.write("<input name=\"nextmonth\" id=\"nextmonth\"  type=\"hidden\">\n");
      out.write("<input name=\"nextyear\" id=\"nextyear\"  type=\"hidden\">\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/weixin/include/footer.jsp", out, false);
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>\n");
      out.write("<script src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${weixin}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/views/newscheduling.js\"></script>\n");
      out.write("<script>\n");
      out.write("  // 对Date的扩展，将 Date 转化为指定格式的String\n");
      out.write("  // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符，\n");
      out.write("  // 年(y)可以用 1-4 个占位符，毫秒(S)只能用 1 个占位符(是 1-3 位的数字)\n");
      out.write("  // 例子：\n");
      out.write("  // (new Date()).Format(\"yyyy-MM-dd hh:mm:ss.S\") ==> 2006-07-02 08:09:04.423\n");
      out.write("  // (new Date()).Format(\"yyyy-M-d h:m:s.S\")      ==> 2006-7-2 8:9:4.18\n");
      out.write("  Date.prototype.Format = function (fmt) { //author: meizz\n");
      out.write("    var o = {\n");
      out.write("      \"M+\": this.getMonth() + 1, //月份\n");
      out.write("      \"d+\": this.getDate(), //日\n");
      out.write("      \"h+\": this.getHours(), //小时\n");
      out.write("      \"m+\": this.getMinutes(), //分\n");
      out.write("      \"s+\": this.getSeconds(), //秒\n");
      out.write("      \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度\n");
      out.write("      \"S\": this.getMilliseconds() //毫秒\n");
      out.write("    };\n");
      out.write("    if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));\n");
      out.write("    for (var k in o)\n");
      out.write("      if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));\n");
      out.write("    return fmt;\n");
      out.write("  }\n");
      out.write("</script>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_005fforEach_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fforEach_005f0.setParent(null);
    // /weixin/leader/worker/jz_scheduling.jsp(75,4) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f0.setVar("item");
    // /weixin/leader/worker/jz_scheduling.jsp(75,4) name = items type = java.lang.Object reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fforEach_005f0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${users}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 };
    try {
      int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag();
      if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\n");
          out.write("      <li data-userid=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write('"');
          out.write('>');
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.cname}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("</li>\n");
          out.write("    ");
          int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_005fforEach_005f0.doFinally();
      _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0);
    }
    return false;
  }
}
